<?php
require_once "DBHelper.class.php";

$db = new DBHelper();
// select * from 'table'
// $db->select('title')->from('article')->where('id = 1')->query();

// insert into ... () values()
//insert(表名,数组) 返回值：插入的行数，如果失败，返回false
$data = array(
	array('name'=>'root','pass'=>'root'),
	array('name'=>'root1','pass'=>'root1'),
	array('name'=>'root1','pass'=>'root1'),
	array('name'=>'root1','pass'=>'root1')
	);
if($db->insert('test',$data)){
	echo "操作成功";
}else{
	echo "操作失败";
}